import glob
import os
out_dir = '/var/www/Imgdetection/upload/result/Result'
for fil in glob.glob(out_dir+'/*'):
    os.remove(fil) 
myf = open('/var/www/Imgdetection/upload/result/1_res.txt',"r")
print(myf.readline())
myf.close() 
